package com.showsu.editor.entity.doo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author: William
 * @Description: 用户领域模型
 * @Date: Created in 8:25 下午 2024/9/12
 * @Modified By:
 */
@Data
public class User implements Serializable {

    @ApiModelProperty("用户id")
    private Long id;

    @ApiModelProperty("手机号")
    private String mobile;

    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("昵称")
    private String nick;

    @ApiModelProperty("微信扫码登录获得的用户openid")
    private String openId;

    @ApiModelProperty("是否会员，0:非会员，1:会员，2：过期会员")
    /**
     * {@link com.showsu.editor.enums.UserVipEnum}
     */
    private Integer vipUser;

    @ApiModelProperty("vip结束时间")
    private Date vipEndTime;

    @ApiModelProperty("vip套餐编码")
    private Integer vipLevelCode;

    @ApiModelProperty("账号状态，状态 1:正常，0:禁用")
    private Integer status;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("更新时间")
    private Date updateTime;

}
